package com.chia.multienty.core.domain.condition;

import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;

public class MasterOrUserCondition extends AnyNestedCondition {
    public MasterOrUserCondition() {
        super(ConfigurationPhase.PARSE_CONFIGURATION);
    }
    @ConditionalOnProperty(prefix = "spring.multienty", name = "user-module-enabled", havingValue = "true")
    static class UserModuleCondition {

    }
    @ConditionalOnProperty(prefix = "spring.multienty", name = "base-module-enabled", havingValue = "true")
    static class MasterModuleCondition {

    }
}
